// TypeScript file
class Hinder extends egret.Sprite
{
    constructor(num: number, type: number)
    {
        super();
        this.initView(num, type);
    }

    private initView(num: number, type: number): void
    { 
        let name: string = "wall"+num + "_" + type + "_png";
        let bmp: egret.Bitmap = ResourceUtils.createBitmapByName(name);
        this.addChild(bmp);
    }
}